<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li id="activetab"><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				    <div id="main">



<h1>${I18n.getMessage("PermissionControl.groupTitle")} :: ${group.name}</h1>


<p>${I18n.getMessage("PermissionControl.areRestrictive")}</p>


<#setting number_format = "#"/>


<script language="JavaScript">
<#include "js/permission_control.js"/>
</script>

<form accept-charset="${encoding}" name="form1" action="${contextPath}/jforum${extension}" method="post">
<input type="hidden" name="action" value="permissionsSave" />
<input type="hidden" name="module" value="${moduleName}" />
<input type="hidden" name="id" value="${group.id}" />

<#list sections as section>
<fieldset>
	<legend>${section.sectionName}</legend>
	<#assign permissions = section.permissions/>
		<#list permissions as p>
        	<dl>
		
         		<dt><label>${p.name}:</label></dt>
				<dd>
					<#if p.type == "single">
						<select name="${p.id}$single">
					<#else>
						<select name="${p.id}" multiple size="4" onChange="return checkThisField(this)">
						<option value="all">${I18n.getMessage("PermissionControl.allowAll")}</option>
					</#if>
					
					<#assign permissionData = p.data/>

					<#assign allValues = ""/>
					<#list permissionData as pd>
						<option value="${pd.id}" <#if pd.selected == true> selected</#if>>${pd.name}</option>
						<#assign allValues = allValues +";"+ pd.id/>
					</#list>
					</select>
					
					<input type="hidden" name="all${p.id}" value="${allValues}" />
				</dd>
		
	        </dl>
		</#list>
</fieldset>
</#list>

<fieldset class="submit-buttons">
		<input class="button1" type="submit" value="${I18n.getMessage("PermissionControl.save")}" name="submit" />
</fieldset>



</form>
<script language="javascript">validateSelectFields();</script>

</div>
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>
